﻿using Newtonsoft.Json;
using RAP.Framework.Libary.DataSource.Model.Attribute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RAP.Web.Core.Server.Model.Test
{
    /// <summary>
    /// 班级
    /// </summary>
    public class Class : NamedDataModel
    {
        [Lazyload]
        public virtual IList<Student> Students { get; set; }

        [Lazyload]
        public virtual Teacher Teacher { get; set; }

        [Lazyload]
        public virtual Teacher Assistant { get; set; }

        [JsonIgnore]
        public int AssistantId { get; set; }

        [JsonIgnore]
        public int TeacherId { get; set; }
    }
}
